package cn.trda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.trda.mapper.AsAccountMapper;
import cn.trda.mapper.AsAccountdetailMapper;
import cn.trda.pojo.Account;
import cn.trda.pojo.Accountdetail;
import cn.trda.service.AccountDetailService;
import cn.trda.util.MySqlPageUtil;
@Service
public class AccountDetailServiceImpl implements AccountDetailService{
	@Autowired
	AsAccountdetailMapper accountdetailMapper;
	
	@Autowired
	AsAccountMapper accountMapper;
	
	@Override
	public List<Accountdetail> getAccountDetailList(Accountdetail accountDetail, Integer page, Integer rows)
			throws Exception {
		return accountdetailMapper.selectAccountDetailList(accountDetail, new MySqlPageUtil(page, rows));
	}

	@Override
	public Integer getCount(Accountdetail accountDetail) throws Exception {
		// TODO Auto-generated method stub
		return accountdetailMapper.selectCount(accountDetail);
	}

}
